home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
ply15dat.zip
/
TCUBIC.PI
< prev
next >
Wrap
Text File
|
1992-09-19
|
719b
|
30 lines
// Generic Polyray input File
// Polyray input file: Alexander Enzmann
// Set up the camera
viewpoint {
from <0, 5, -5>
at <0, 0, 0>
up <0, 1, 0>
angle 30
resolution 160, 160
}
// Get various surface finishes
include "..\colors.inc"
// Set up background color & lights
background black
light <10, 10, -20>
// A drop coming out of water? This is a curve formed by using the equation
// x = 1/2 y^2 (y + 1) as the radius of a cylinder having the y-axis as
// its central axis.
object {
object { polynomial x^2 + z^2 - 0.5*(y^3 + y^2) }
& object { box <-1, -1, -1>, <1, 1, 1> }
bounding_box <-1, -1, -1>, <1, 1, 1>
rotate <30, 0, 0>
shiny_red
}